<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>基于SpringBoot实现图片上传和给上传的图片添加水印(使用ajax提交)</title>
    <script type="text/javascript" th:src="@{/js/jquery-3.4.1.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/index.js}"></script>
</head>
<body>
    <h3 style="text-align: center;">基于SpringBoot实现图片上传和给上传的图片添加水印 - 使用ajax表单提交</h3>
    <form enctype="multipart/form-data" id="image-box">
        <p>仅支持PNG和JPG/JPEG格式的图片：</p>
        <input type="file" name="img" accept="image/png, image/jpg, image/jpeg"/>
        <br>
        <input type="button" id="image-upload-btn" value="上传"/>
    </form>
</body>
</html>